import request from '@/utils/request'

// 查询行为检测与报警模块列表
export function listBehaviorMonitor(query) {
  return request({
    url: '/kindergarten/behaviorMonitor/list',
    method: 'get',
    params: query
  })
}

// 查询行为检测与报警模块详细
export function getBehaviorMonitor(id) {
  return request({
    url: '/kindergarten/behaviorMonitor/' + id,
    method: 'get'
  })
}

// 新增行为检测与报警模块
export function addBehaviorMonitor(data) {
  return request({
    url: '/kindergarten/behaviorMonitor',
    method: 'post',
    data: data
  })
}

// 修改行为检测与报警模块
export function updateBehaviorMonitor(data) {
  return request({
    url: '/kindergarten/behaviorMonitor',
    method: 'put',
    data: data
  })
}

// 删除行为检测与报警模块
export function delBehaviorMonitor(id) {
  return request({
    url: '/kindergarten/behaviorMonitor/' + id,
    method: 'delete'
  })
}
